package br.perfiman.service.impl;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import br.perfiman.dao.AbstractDAOService;
import br.perfiman.dao.UserDAOService;
import br.perfiman.model.User;
import br.perfiman.service.UserService;

/**
 *
 * @author Wagner Costa
 * @since 31/12/2007
 * @version 1.0
 *
 */
@Stateless
public class UserServiceBean extends AbstractServiceBean<User> implements UserService{
	@EJB(name="UserDAOService")
	protected UserDAOService dao;

	@Override
	public AbstractDAOService<User> getDao() {
		return dao;
	}

	@Override
	public User insert(User entity) throws Exception {
		return super.insert(entity);
	}

	@Override
	public void validateBussinessRules(User entity, boolean isUpdate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void validateInvalidFields(User entity, boolean isUpdate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void validateRequiredFields(User entity, boolean isUpdate) {
		// TODO Auto-generated method stub
		
	}
}
